package com.zy.business.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zy.business.domain.TbDocumentFolder;

import java.util.List;

public interface DocumentFolderService extends IService<TbDocumentFolder> {

    /**
     * 新增文档库
     * @param documentFolder
     * @return
     */
    int addDocumentFolder(TbDocumentFolder documentFolder);

    /**
     * 修改文档库
     * @param documentFolder
     * @return
     */
    int editDocumentFolder(TbDocumentFolder documentFolder);

    /**
     * 删除文档库
     * @param id
     * @return
     */
    int deleteDocumentFolder(Long id);

    /**
     * 根据项目id分页获取文档库列表
     * @param projectId
     * @return
     */
    List<TbDocumentFolder> list(Long projectId);
}
